package com.zyj.java2;


/**
 * @program: JVMDemo
 * @ClassName SynchronizedTest
 * @author: YaJun
 * @Date: 2021 - 12 - 15 - 10:05
 * @Package: com.zyj.java2
 * @Description: 同步省略
 */
public class SynchronizedTest {

    public void f() {
        Object object = new Object();
        synchronized (object) {
            System.out.println(object);
        }
    }

}